package com.ruoyi.algorithm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.algorithm.entity.Algorithm;
import com.ruoyi.algorithm.model.AlgorithmListModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Entity com.ruoyi.algorithm.entity.Algorithm
 */
@Repository(value = "algorithmMapper")
public interface AlgorithmMapper extends BaseMapper<Algorithm> {

    /**
     * 分页，条件查询
     */
    /**
     * 查询分页数据
     */
    Page<AlgorithmListModel> listByPage(IPage<AlgorithmListModel> page, @Param("conditionList") List<Map<String, Object>> conditionList, @Param("orderAttr") String orderAttr,
                                        @Param("orderType") String orderType);
}




